﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.WorkItemTracking.Client;

namespace ScrumDashboard.Library.Tfs
{
    /// <summary>
    /// Helper methods on WorkItem
    /// </summary>
    public static class WorkItemExtension
    {
        public static string GetTeamProject(this WorkItem wi)
        {
            return wi.Fields["System.TeamProject"].Value as string;
        }

        public static string GetWorkItemType(this WorkItem wi)
        {
            return wi.Fields["System.WorkItemType"].Value as string;
        }
    }
}
